{{ $toc_show_len := or .Site.Params.toc_show_len 0 }}
{{ if and (gt .WordCount $toc_show_len ) (.Params.toc) }}
<section class="aside-widget widget-toc content-padding-large soft-size--large soft-style--box">
  <h2 class="widget-header">
    <div class="title">
      <span>{{ i18n "toc" }}</span>
    </div>
  </h2>
  <div class="widget-body">
    {{ .TableOfContents }}
  </div>
</section>
{{ end }}